<?php

//指挥者，关注建造顺序
class DirectorCommon
{
    private $builder;

    public function __construct(Builder $builder)
    {
        $this->builder = $builder;
    }

    public function build()
    {
        $this->builder->buildA();

        $this->builder->buildB();

        $this->builder->buildC();

        $this->builder->buildD();
    }
}